package com.bos.util;
/*
 * 微信公众平台的参数
 *
 * */
public class WeiXinParamesUtil {

    //appId
    public static String APPID;
    //appSecret
    public static String SECRET;
    //redirect_uri
    public static String REDIRECT_URI;
    //scope
    public static String SCOPE;
    //模板id
    public static String TEMPLATEID;

    static {
        //开发环境使用测试号的参数配置
        if (System.getenv("env") != null && System.getenv("env").equals("dev")) {
            APPID = "wx39b1bb2c2b663946";
            SECRET = "bcc34c7a7d294dec29b722c0fe433f37";
            SCOPE = "snsapi_userinfo";
            REDIRECT_URI = "hgbcbim.oicp.io";
            TEMPLATEID = "4JDGT8xdV-PQYbtiwJaeb352WoeUDHRtb29gn62olJk";
        } else {
            //正式的服务号参数
            APPID = "wxd842e30025df0f97";
            SECRET = "349459f58dbf19a71f7f58c67f2eea3d";
            SCOPE = "snsapi_userinfo";
            REDIRECT_URI = "snsapi_userinfo";
            TEMPLATEID = "LrO8opbKvEzQTUJquyuP_2C6lMUOlw3S7JYl9V7bvgc";
        }
    }
}
